//
//  MI_GetFlowAttachList_Task.m
//  EpointFrame5
//
//  Created by wangzhigang on 14-8-19.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "MI_GetFlowAttachList_Task.h"

@implementation MI_GetFlowAttachList_Task
-(void)execute
{
    NSString *ValidateData = [EpointBizTools getToken];
    NSString *url = NSLocalizedString(@"SP_WebService_Url", @"");
    NSString *wsNamespace = NSLocalizedString(@"Epoint_DNet_WS_NameSpace", @"");
    NSString *ProcessVersionInstanceGuid = [params objectForKey:@"ProcessVersionInstanceGuid"];
    
    NSString *doMethod = @"MI_GetFlowAttachList";
    
    NSString *ParasXml = @"<?xml version=\"1.0\" encoding=\"gb2312\"?><paras><ProcessVersionInstanceGuid>%@</ProcessVersionInstanceGuid></paras>";
    EpointWebServiceUtil *webserviceHelper = [[EpointWebServiceUtil alloc]initWithUrl:url namespace:wsNamespace method:doMethod];
    ParasXml = [NSString stringWithFormat:ParasXml,ProcessVersionInstanceGuid];
    ParasXml = [EpointStringUtil filterXmlString:ParasXml];
    [webserviceHelper addParameterForString:@"ValidateData" value:ValidateData];
    [webserviceHelper addParameterForString:@"ParasXml" value:ParasXml];
    NSString *bs = webserviceHelper.start;
    if ([self validateXMLWS:bs]) {
        [self exeSuccessWithData:bs];
    }
}
@end
